$def with (md5, sample, android_manifest, recursos)
$var title: Report ($md5)
$var search_form: True
$var jquery:
	var clases = new all_classes(
		function(){
			clases.printList('#packs');
			$$('#packs li ul').hide();
			$$('#packs li span').click(function(){
				$$(this).parent().children("ul").toggle();
			});
		});
	</script>
	<script language='javascript' src='/static/SyntaxHighlighter/shCore.js'></script>
	<script language='javascript' src='/static/SyntaxHighlighter/shBrushXml.js'></script>
	<script language='javascript'>
	var stack_arroba_num = createStackArrobaNum();
	var reintento_link = 0;
	var pkg = "";
	function genLinkFromHighlight(){
		if(clases._classes != null){
			clearInterval(reintento_link);
			procesar_xml(pkg, clases, stack_arroba_num);
		}
	};
	$$(document).ready( function() {
		clases.load();
		var ini_search = function(){
			new VentanaBusquedaAJAX("/static/reports/$md5/", clases, $$('#busca_text').attr("value"));
			return false;
		};
		$$('#busca_ya').click(ini_search);
		$$('#search_form').submit(ini_search);
		
		var re = new RegExp('package="(([a-zA-Z][a-zA-Z0-9]+\\.?)*)"', "g");
		pkg = re.exec($$('#and_man').text());
		if(pkg && pkg.length==3) pkg = pkg[1];
		else pkg = false;
		
		setTimeout(function(){//Sobre un hilo coloreo y genero los enlaces
			dp.SyntaxHighlighter.ClipboardSwf = '/static/SyntaxHighlighter/clipboard.swf';
			dp.SyntaxHighlighter.HighlightAll('code');
			reintento_link = setInterval(genLinkFromHighlight, 500);
		},1);
		
		$$('#recursos li ul').hide();
		$$('#recursos li span').click(function(){
			$$(this).parent().children("ul").toggle();
		});
		$$('#antilvl').click(function(){
			new showAntilvlInfo("$md5");
		});
	});
    
$def print_recursos(res, padre):
	$for key in res:
		$if key == "_ficheros_":
			$for clase in res[key]:
				<li class="files"><a href="./res/@$padre/$clase.rsplit(".",1)[0]">$clase</a></li>
		$else:
			<li class="directorio"><span>$key</span><ul>
			$:print_recursos(res[key], key)
			</ul></li>

<div id="view_head">
$for link in sample:
	$:link
<a href="#" id="antilvl">AntiLVL info</a>
</div>

$if android_manifest:
	<div id="android_manifest">
		<h3>Android Manifest</h3>
		<pre name="code" id="and_man" class="xml:nocontrols">$android_manifest</pre>
	</div>
<div>
<ul id="packs">
</ul>
<ul id="recursos">
	<h3>Recursos</h3>
	$:print_recursos(recursos,"")
</ul>
</div>
